<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class model_cron extends CI_Model{

    public function __construct()
    {
        parent::__construct();
    }
    
    function delete_chat_message($time){
        if( empty($time) ) return false;
        
        $q = $this->db->query('DELETE FROM ajax_chat_messages WHERE dateTime LIKE "'.$time.'%"');
        if($q) return true;
        return false;
    }
}
/* End of file model_cron.php */
/* Location: ./application/models/model_cron.php */
